package com.thread.pool;

public class PrintRunnable implements Runnable {

//	private Object ojb = new Object();
	private String context;
	private int index;
	
	public PrintRunnable(String context) {
		this.context = context;
	}
	
	@Override
	public void run() {
		this.execute();
	}
	
	public String getContext() {
		return context;
	}

	//private synchronized void execute(){
	private void execute(){
		while (true){
//			synchronized (this) {
//				index++;
//				
////				if ((index % 10) == 0)
////				{
////					System.out.println("done...");
////					break;
////				}
//				
//				
////				System.out.println(index + ":" + this.context);
//				
//			}
			
		}
	}

}
